package com.hghivln.pojo.dto;

import com.hghivln.pojo.domain.SimpleUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderChargeFromDto implements Serializable {

    /**
     * 主订单
     */
    @Valid
    private OrderChargeDto orderChargeDto;

    /**
     * 订单详情
     */
    @Valid
    @NotEmpty(message = "订单详情不能为空")
    private List<OrderChargeItemDto> orderChargeItemDtoList;

    private SimpleUser simpleUser;
}
